package com.chenbei.erp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chenbei.common.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

@TableName("erp_product_brand")
@Schema(description = "产品品牌")
@EqualsAndHashCode(callSuper = true)
@Data
public class ProductBrand extends BaseEntity {

    @Schema(description = "主键ID")
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "名称")
    @NotBlank(message = "品牌名称不能为空")
    private String name;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "状态[0:禁用|1:启用]")
    private Integer status;
}
